import axios from 'axios'

export const getWorkerNodes = (page_id) => {
  return axios.get('/worker-nodes', { params: { page_id } })
}

export const enableWorkerNode = (worker_id, is_enable) => {
  return axios.post('/worker-nodes/enable', { worker_id, is_enable })
}

export const getRegisterUrl = () => {
  return axios.get('/worker-nodes/register-url')
}
